/**
 * 
 */
package sismed.dados.hibernate.dao;

import org.hibernate.Session;
import sismed.dao.IDAOSumarioAlta;
import sismed.hibernate.util.HibernateUtil;
import sismed.negocio.modelo.SumarioAlta;

/**
 * @author Berg
 *
 */
public class DAOHibernateSumarioAlta implements IDAOSumarioAlta {

	private Session session;
	
	public DAOHibernateSumarioAlta(){
		this.session = HibernateUtil.getSession();
	}
	public boolean cadastrar(SumarioAlta alta) {
		this.session.beginTransaction();
		this.session.save(alta);
		this.session.getTransaction().commit();
		return true;
	}

}
